export const FILTERS = [
    {
        label: '规则名称',
        type: 'el-input',
        dataField: 'name',
        vModel: 'hello1',
        props: {
            
        },
    },
    {
        label: '状态',
        type: 'el-select',
        dataField: 'status',
        vModel: 0,
        props: {
            options: [
                { label: '开启', value: 1 },
                { label: '关闭', value: 0 },
            ],
        },
    },
    {
        label: '服务调用次数',
        type: 'el-input-number',
        dataField: 'count',
        vModel: 0,
        props: {
            
        }
    },
];

export const BTNS = [
    {
        name: '重置',
        props: {
            
        },
    },
    {
        name: '查询',
        props: {
            type: 'primary',
        },
        onClick (params) {
            console.log(params);
        },
    },
];

export const COLUMNS = [
    {
        title: '规则名称',
        dataIndex: 'name',
        key: 'name',
    },
    {
        title: '描述',
        dataIndex: 'desc', // description
        key: 'desc',
    },
    {
        title: '服务调用次数',
        dataIndex: 'callNo',
        key: 'callNo',
    },
    {
        title: '状态',
        dataIndex: 'status',
        key: 'status',
    },
    {
        title: '上次调度时间',
        dataIndex: 'updatedAt',
        key: 'updatedAt',
    },
    {
        title: '操作',
        key: 'operator',
        width: 500,
        children: [
            {
                type: 'el-button',
                name: '编辑',
                props: {
                    type: 'primary',
                },
                onClick (rowData) {
                    console.log(rowData);
                },
            },
            {
                type: 'el-button',
                name: '删除',
                props: {
                    type: 'danger',
                },
            },
            {
                type: 'el-tag',
                name: 'balabala',
                props: {
                    color: 'red',
                },
            },
            {
                type: 'el-tag',
                name: 'daladala',
                props: {
                    color: 'purple',
                },
            },
        ],
    },
];
